import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/cai/LoginView.vue')
  },
  {
    path: '/page',
    name: 'Page',
    component: () => import('../views/cai/PageView.vue')
  },
  {
    path: '/market',
    name: 'Market',
    component: () => import('../views/cai/MarketView.vue')
  },
  {
    path: '/recruit',
    name: 'Recruit',
    component: () => import('../views/cai/RecruitView.vue')
  },
  {
    path: '/find',
    name: 'Find',
    component: () => import('../views/cai/FindView.vue')
  },
  {
    path: '/person',
    name: 'Person',
    component: () => import('../views/cai/PersonView.vue')
  },
  {
    path: '/article',
    name: 'Article',
    component: () => import('../views/cai/ArticleView.vue')
  },
  {
    path: '/',
    redirect: '/login'
  }
]

const router = new VueRouter({
  routes
})

export default router
